package org.ninjarope.cinderstained.main.gameplay;

import com.badlogic.gdx.math.Vector2;

public class SpawnPoint {

	protected float nextSpawn;
	protected Creep spawn;
	public Vector2 position;
	//broj crepova koje sadrzi jedna grupa
	public int creepsPerGroup;
	//broj grupa koje ce biti proizvedene u toku talasa
	public int numberGroups;
	//vreme izmedju respawn-a dve grupe
	public float groupRespawnTime;
	
	
	SpawnPoint(Creep s){
		spawn=s;
		nextSpawn=0;
		position=new Vector2();
	}
	
	/**
	 * Method for spawning next creep, if all creeps and groups are on cooldown it will return null
	 * @return spawned creep
	 */
	public Creep spawn(){
		return spawn;
		
	}
}
